package com.hl.toolkit.server.tycoin.common.enums;

public enum PayModeEnum {
    weixin(1, "微信支付"), alipay(2, "支付宝"),baidu(3,"百度钱包"),QQ(4,"QQ钱包"),JD(5,"京东支付"),union(6,"银联支付"),suning(7,"苏宁支付");
//	1.微信支付，2.支付宝，3.百度钱包，4.QQ钱包，5.京东钱包，6银联，7苏宁
    int key;
    String value;

    PayModeEnum(int key, String value) {
        this.key = key;
        this.value = value;
    }

    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public static PayModeEnum getEnumByKey(int key) {
        for (PayModeEnum objEnum : PayModeEnum.values()) {
            if (key == objEnum.getKey()) {
                return objEnum;
            }
        }
        return null;
    }
}
